01-03-2018 15:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-03-2018 15:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
As we know, right now it's impossible to dynamically insert and remove SVG elements or draw the arbitrary stuff on the screen in any other way, which is probably the most serious restriction of the SDK. I'd like to propose the simple solution to this problem which does not require introducing the canvas, implementing the generic DOM manipulation, and massive changes to the SDK API.
An idea is to make it possible to instantiate template symbols programmatically and insert them into the special container element (svg or the dedicated element like the TileList).
Not only it will solve the lack of canvas problem, but it will also make the template symbols the really powerful abstraction which can dramatically change an application's architecture. Long story short - we could have normal Views and widgets which can be attached dynamically from JS.
Here's the proposal. Thoughts?
https://community.fitbit.com/t5/Feature-Suggestions/Dynamic-Template-Symbols-Instantiation-an-altern...
01-04-2018 16:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-04-2018 16:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Don't forget to upvote. Remember, right now you can't draw arbitrary stuff on the screen. No canvas, no SVG DOM manipulations from the JS.This is the major device SDK restriction making it impossible or really hard to create the wide class of user interfaces.
