data-model Example

The most basic operation you can perform with the framework is to show a variable in the page.

<div id="app"> <span data-model="message"></span> </div>
import {rjsf} from '../rjsf.js' (function() { const appElement = document.getElementById('app'); const app = new rjsf(appElement); const viewmodel = { data: { message: 'hello world', } }; app.init(viewmodel); })();

Back to example index