Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Allow sheet workers to hook directly into control events and set html properties.

Currently, character sheets can only be updated when a value on the character sheet is updated.  There are many events that sheet developers could utilize to make sheets significantly more friendly to users if provided limited access to the sheet's html events from the sheet worker.  As an example of something that is currently not possible is searchable dropdowns updating as you type (click to see the animated gif example): Giving users access to certain control-specific additional events and properties  will allow for more robust and intuitive character sheet design and can also cut down on the number of attributes required for a character sheet.  A safe object that gives limited access to the character sheet section of the DOM could handle this. A simplified example of implementation, sheet provides limited DOM access: onSheet('.sheet-class:change',function (eventInfo) {     sheet['.sheet-spells-tab'].display = eventInfo.newValue === 'Wizard' ? 'block' : 'none'; } In the above example, you see we've switched to using CSS selectors rather than attribute names and the sheet object itself works with simple css selection syntax.
1579083131
[Deleted]
Pro
Marketplace Creator
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .