Open ghost opened 5 years ago
In the case of using the iconpicker within a React component:
import bulmaIconpicker from "bulma-iconpicker"
componentDidMount() {
bulmaIconpicker.attach();
}
render() {
return (
<input type="text" id="iconPicker" data-action="iconPicker" value="fa fa-icon fa-star" onChange={this.changeType}/>
)
}
@Wikiki Would you accept a Pull Request with that?
@is-shining Its super-easy to propose a change to improve a file on Github. Would you be willing to do that when @Wikiki would be happy about it? I'd propose to add a "minimal example" section in the README
, or an examples/minimal.html
file (but I'd really prefer the README
).
@is-shining You basically click on the edit-icon here: https://github.com/Wikiki/bulma-iconpicker/blob/master/README.md . Unfortunately, I dont find a sweet tutorial, but its really just a few clicks.
Hi,
Sure. Make a PR for that
@ptraverse @is-shining Did you figure out how to set the inputs' value to the selected icon? Thanks
One doesn't know how to attach the icon picker. In the documentation one cannot find the following code:
It would be really useful if one can find the complete HTML structure in the documentation, something like:
That saves a lot of time!
Thank you very much for the great bulma icon picker. Kind regards!