We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you have a quick example that shows how one might bind a data array to an html table?
The text was updated successfully, but these errors were encountered:
HTML:
<table class="table table-responsive-sm table-bordered table-striped table-sm"> <thead> <tr> <th>Filename</th> <th>Action</th> </tr> </thead> <tbody id="filelistJSON"> <tr> <td>No File Loaded</td> <td> <span class="badge badge-success">Active</span> </td> </tr> </tbody> </table>
JS:
var viewJSON = Bind({ view: { files: [ // threejs meshes pushed here by loaders ], }, }, { 'view.files': { dom: '#filelistJSON', transform: function (files) { return '<tr><td>' + this.safe(files.userData.filename) + '</td><td>' + this.safe(files.userData.type) + '</td></tr>' } }, });
Sorry, something went wrong.
No branches or pull requests
Do you have a quick example that shows how one might bind a data array to an html table?
The text was updated successfully, but these errors were encountered: