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

Enable “ButtonText” option for mutable array’s in config.schema.json #668

Closed
newmans99 opened this issue May 8, 2020 · 2 comments
Closed

Comments

@newmans99
Copy link

In the config.schema.json file it would be helpful to support a Button Text entity to change the default “ADD TO {arrayname}” to something else.

For example...
"schema": {
"type": "object",
"properties": {
"calendars":{
"title": "Calendars",
“buttonText”:”Add a new calendar”,
"type": "array",
"orderable": false,
"required": true,
"description": "Add a calendar configuration.",
....

This would change the button from “ADD TO CALENDARS” to “Add a new calendar”.

Environment:

Node.js Version: All supported
NPM Version: All supported
Homebridge Version: 1.x+
Operating System: All supported
Process Supervisor: N/A

@oznu
Copy link
Member

oznu commented May 12, 2020

This is available for testing in 4.19.0-test.3.

https://github.com/oznu/homebridge-config-ui-x/wiki/How-To-Test-Upcoming-Changes

Example:

          "instanceBlacklist": {
            "title": "Blacklisted Instances",
+           "buttonText": "Add Instance",
            "type": "array",
            "items": {
              "title": "Instance Username",
              "type": "string",
            }
          }

@grzegorz914
Copy link
Contributor

Tested, working fine.

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

No branches or pull requests

3 participants