Skip to content
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

add size attributes to template jsonConfig.json #1121

Open
mcm1957 opened this issue Oct 4, 2024 · 2 comments
Open

add size attributes to template jsonConfig.json #1121

mcm1957 opened this issue Oct 4, 2024 · 2 comments

Comments

@mcm1957
Copy link
Contributor

mcm1957 commented Oct 4, 2024

Please consider to add xs/sm/md/lg/xl size attributes to template jsonConfig

@AlCalzone
Copy link
Collaborator

An example would be helpful.

@mcm1957
Copy link
Contributor Author

mcm1957 commented Oct 8, 2024

for example see backitup adapter
https://github.com/simatec/ioBroker.backitup/blob/14599fac81c7437d140a832e0708ea7fb66955ae/admin/ccu.jsonConfig.json5#L29

    "backupNow": {
      "type": "custom",
      "button": true,
      "variant": "contained",
      "url": "custom/customComponents.js",
      "name": "ConfigCustomBackItUpSet/Components/BackupNow",
      "backUpType": "ccu",
      "icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iY3VycmVudENvbG9yIj4NCiAgICA8cGF0aCBkPSJNMTkuMzUgMTAuMDRDMTguNjcgNi41OSAxNS42NCA0IDEyIDQgOS4xMSA0IDYuNiA1LjY0IDUuMzUgOC4wNCAyLjM0IDguMzYgMCAxMC45MSAwIDE0YzAgMy4zMSAyLjY5IDYgNiA2aDEzYzIuNzYgMCA1LTIuMjQgNS01IDAtMi42NC0yLjA1LTQuNzgtNC42NS00Ljk2ek0xNCAxM3Y0aC00di00SDdsNS01IDUgNWgtM3oiLz4NCjwvc3ZnPg0K",
      "label": "Backup now",
      "newLine": true,
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 3
    },

Doku
https://github.com/ioBroker/ioBroker.admin/blob/master/packages/jsonConfig/SCHEMA.md#common-attributes-of-controls

Example should include all five attributes (xs, sm, md, lg, xl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants