-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
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
Tabs: activeid vs. boolean to activate #191
Comments
@chrisdholt @nicholasrice @stubbornella @bkardell given your interest in tabs can you help move this forward? |
Yeah, I have a kind of meta question on this because I'm not sure we should talk about this. In order to talk about an attribute I feel like you kind of need an idea about what the actual serialization looks like and how it is used. You could easily start with the idea that:
And that gets you very very far, kind of best of both worlds (it just depends which is better to you in practice) without talking about attributes or serializations which gets actually trickier, especially if you haven't pinned down actual structures yet. How does this sound as a starting point? In HTML, I think the "smart" thing to do would be to have a non-reflective boolean marker attribute for sending down which is selected by default but I feel like getting into that leads us down a lot of other difficult things too early. Could we kind of punt on this as an attribute for now? |
This is assuming the attribute goes into the platform, this may not be the case as currently it will just be an undefined attribute but is still possible to leverage as an attribute. Granted, I'd expect it to end up in the platform but the complexities don't need to be tackled at this stage. I am not advocating for/against the attribute itself but should align with what is common practice.
Completely agree. I just want to ensure that issues move forward and try to keep them from becoming stale. |
Yes, sorry - this is on my list to return to having some time for after next week. |
Why do you feel this way? To me not having a way to select the active tab via HTML is a pretty big deficiency and something we should not punt on. Just doing a quick look I see that Material, Bootstrap, and Shoestyle are all using a boolean. And of course |
Wanted to chime in here from FAST's perspective. We currently support
If someone tries to set Our proposal is to switch to If |
There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label. |
The proposal document talks about an
activeid
attribute as a way to set the active tab. Some implementations instead have anactive
boolean that you can set on a tab. Which approach should we take?The text was updated successfully, but these errors were encountered: