API Reference > imodeljs-frontend > Views > ViewState > createFromProps createFromProps MethodStatic Create a new ViewState object from a set of properties. Generally this is called internally by IModelConnection.Views.load after the properties have been read from an iModel. But, it can also be used to create a ViewState in memory, from scratch or from properties stored elsewhere. createFromProps(_props: ViewStateProps, _iModel: IModelConnection): ViewState | undefined Parameter Type Description _props ViewStateProps _iModel IModelConnection Returns - ViewState | undefined Defined in core/frontend/src/ViewState.ts Line 248 Last Updated: 13 June, 2024