azist / azos-js

Provides Azos base types and services functionality for Java Script apps
MIT License
1 stars 3 forks source link

General properties: absent, visible. disabled, readonly - should they be exposed on a more general element instead of Part? For example: how to control TREE, TABS, Modal? #174

Open itadapter opened 1 week ago

itadapter commented 1 week ago

What is now in Part needs to probably be extracted to a more general level, such as

AzosElement  // broad abstraction: rank, status, scope
    Applet  //an element to create APPLETS
            -> ........
    Modal
    Toast
    Control  // A Control is an element which can be "controlled" changed: 
             // visibility/display/enabled/readonly
            -> Part
                  -> Button
                  -> FieldPart
                       -> TextField
                       -> CheckField .....  
            -> Block 
                  -> Form
            -> TabView
            -> TreeView

How can I today make tree or tabs absent (display: none?) how can i hide them? How can I enable/disable or make them readonly?

We need to review all controls:

itadapter commented 4 days ago

I think this can be closed as done?