bryanbraun/checkboxland
Fork: 70 Star: 939 (更新于 1970-01-01 00:00:00)
license: MIT
Language: JavaScript .
Render anything as HTML checkboxes
最后发布版本: v1.5.0 ( 2022-02-17 02:47:20)
Checkboxland
Checkboxland is a JavaScript library for rendering anything as HTML checkboxes.
You can use it to display animations, text, images, video, and arbitrary data. It also supports plugins, so you can add your own APIs.
Checkboxland is dependency-free, framework-agnostic, and fun! 🙃
For more details see the docs.
Setup
Install this package via npm:
npm install checkboxland
Example
Import it into your application, and create a checkbox grid:
import { Checkboxland } from 'checkboxland';
const cbl = new Checkboxland({ dimensions: '8x7', selector: '#my-container' });
// Create a data representation of the heart.
const heart = [
[0,1,1,0,0,1,1,0],
[1,0,0,1,1,0,0,1],
[1,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,1],
[0,1,0,0,0,0,1,0],
[0,0,1,0,0,1,0,0],
[0,0,0,1,1,0,0,0],
];
// This updates the grid with the data we provided.
cbl.setData(heart);
Contributing
Checkboxland is designed to be extendable. If you want to add a feature, first ask yourself if it could be done as an external plugin.
If you contribution requires a change to the core library, follow these steps:
- Fork/Clone the repo.
- Make your changes on a feature branch.
- Run the docs site locally (
npm run dev
) to confirm that the demos still work as expected. - Submit a Pull Request.
License
MIT
最近版本更新:(数据更新于 1970-01-01 00:00:00)
2022-02-17 02:47:20 v1.5.0
2021-11-17 13:58:49 v1.4.0
2021-09-09 13:18:11 v1.3.0
2020-07-30 20:51:30 v1.2.0
2020-06-06 13:45:58 v1.1.0
2020-02-25 14:36:44 v1.0.4
2020-02-22 02:43:28 v1.0.3
2020-02-21 11:18:46 v1.0.2
bryanbraun/checkboxland同语言 JavaScript最近更新仓库
2024-11-22 16:46:00 meshery/meshery
2024-11-21 23:03:24 bia-pain-bache/BPB-Worker-Panel
2024-11-21 22:46:48 MHSanaei/3x-ui
2024-11-21 07:00:59 nodejs/node
2024-11-21 00:49:46 FortAwesome/Font-Awesome
2024-11-18 14:26:02 projectdiscovery/nuclei-templates