Class: View
Represents all the metadata of the form viewer components.
Extended by
Implements
Constructors
Constructor
new View(
models):View
Creates an instance of the View.
Parameters
models
Model<any>[] = []
the components metadata.
Returns
View
Accessors
viewerWrappers
Get Signature
get viewerWrappers():
FormViewerWrapper[]
Retrieves the viewer wrappers array.
Returns
the viewer wrappers array.
Retrieves the viewer wrappers array.
Implementation of
Methods
all()
all():
Model<any>[]
Returns
Model<any>[]
all component metadata for the form viewer.
Implementation of
define()
define(
model):void
Parameters
model
Returns
void
Inherit Doc
Implementation of
filterModels()
filterModels(
predicate):Model<any>[]
Parameters
predicate
(model) => boolean
the filter function.
Returns
Model<any>[]
the array of component metadata filtered using the predicate function.
Implementation of
find()
find(
type):undefined|Model<any>
Parameters
type
string
the component type.
Returns
undefined | Model<any>
the component metadata for the form viewer for the specified type or undefined.
Implementation of
get()
get(
type):Model<any>
Parameters
type
string
the component type.
Returns
Model<any>
the component metadata for the form viewer for the specified type.
Implementation of
getCssLoaders()
getCssLoaders(
biDi): () =>Promise<void>[]
Parameters
biDi
the BiDi object for which to retrieve the CSS loaders.
Returns
() => Promise<void>[]
the array containing the CSS loaders for the specified BiDi.
Implementation of
withCssLoader()
withCssLoader(
cssLoaderType,loader):View
Parameters
cssLoaderType
the BiDi layout type, either 'common', 'ltr', or 'rtl'.
loader
() => Promise<void>
the function that returns a Promise to load CSS or other required localization resources.
Returns
View
the View instance.
Implementation of
withViewerWrapper()
withViewerWrapper(
wrapper):View
Parameters
wrapper
the viewer wrapper to be added. The wrapper is a component that wraps the form viewer.
Returns
View
the View instance.
Implementation of
create()
staticcreate(models):View
Static wrapper for the View constructor.
Parameters
models
Model<any>[]
the components metadata.
Returns
View
the View instance.