Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/attitude/field-ternary
Ternary button group for Cockpit CMS (Next)
https://github.com/attitude/field-ternary
Last synced: about 6 hours ago
JSON representation
Ternary button group for Cockpit CMS (Next)
- Host: GitHub
- URL: https://github.com/attitude/field-ternary
- Owner: attitude
- License: mit
- Created: 2016-01-14T22:27:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T22:37:14.000Z (almost 9 years ago)
- Last Synced: 2023-03-11T07:18:30.667Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ternary Field for [Cockpit](https://github.com/aheinze/cockpit/tree/next)
Ternary switch, similar to boolean, with extra null value
![Ternary Field Preview](preview.png)
## Installation
```
$ cd cockpit/modules/addons
$ git clone [email protected]:attitude/field-ternary.git
```
_Note: Directory must be named **field-ternary** for Cockpit to register addon._## Options
| Paramenter | Type | Description
|:-----------|-----------------|------------
| labelNull | *string* | `null` label
| labelTrue | *string* | `true` label
| labelFalse | *string* | `false` labelFeel free to test it and let me know [@martin_adamko](https://twitter.com/martin_adamko) how works for you. Feel free to open issue if you find one.
Enjoy!