-
Notifications
You must be signed in to change notification settings - Fork 0
IBCWrapper
Qamsari edited this page Jul 25, 2021
·
1 revision
This interface represent core methods for create and run BasisCore object.
addFragment(selector: string): IBCWrapper;
addFragment(element: Element): IBCWrapper;
addFragment(param: any): IBCWrapper;
setOptions(options: IHostOptions): IBCWrapper;
run(): IBCWrapper;
setSource(
sourceId: SourceId,
data: any,
options?: ISourceOptions
): IBCWrapper;-
addFragment()
adding selected fragment of Html element to collection,that BasisCore object must create up on them.parameter can be:-
string
Valid css selector likediv,#userIdorspan .myClass div#data -
element
Valid Html element of Type Element
-
string
-
setOptions()
Setting options for to be created BasisCore object. For more information see IHostOptions -
run()
Create BasisCore object and start rendering process. after create BasisCore object, callingaddFragment()method is illegal and rase error. -
setSource()
Add or update data source to created BasisCore object. calling this method, executerun()in background an create BasisCore object.-
sourceId
Id or name of Source instringformat -
data
source object innumber,string,objectandarray.In case ofnumberorstring, a new object withvaluefield created and data store in that field. -
options
options for source. for more information see ISourceOptions
-
sourceId
Copyright © 2020 Manzoomeh Negaran Co Lts.
Powered by BasisCore
- Home
- IContext
- $bc
- Source
- Options
- ConnectionOptions
- Component
- UserDefinedComponent
- APIComponent
- HTML Components
- SourceBase Components
- Source Components
- Callback Argument
- Enum
- Util