
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-bootstrap-xeditable
Advanced tools
X-Editable for React with Bootstrap. [Demo](https://yankun.org/react-bootstrap-xeditable/)
X-Editable for React with Bootstrap. Demo
# npm
npm install react-bootstrap-xeditable
# yarn
yarn add react-bootstrap-xeditable
import bootstrap css and xeditable css
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://vitalets.github.io/x-editable/assets/x-editable/bootstrap3-editable/css/bootstrap-editable.css">
import {EditableTextField} from 'react-bootstrap-xeditable';
<EditableTextField name='username' value={this.state.value} onSave={this.onSave} placeholder='Please input your username'/>
Option | Type | Required | Description |
---|---|---|---|
isEditing | boolean | optional | Set editing status |
isEditable | boolean | optional | You can make it readonly |
linkClassName | string | optional | Defined the css class for the link text |
nonValueText | string | optional | the default text if no value |
value | string | required | The value of input text |
onSave | function | required | the callback when click save button |
onCancel | function | optional | the callback when click cancel button |
placeholder | string | optional |
const options = [
{
text: 'China',
value: 'CN'
}, {
text: 'India',
value: 'IN'
}, {
text: 'United Kingdom (UK)',
value: 'UK'
}, {
text: 'United States of America (USA)',
value: 'USA'
}
];
import {EditableSelect} from 'react-bootstrap-xeditable';
<EditableSelect name='country' onSave={this.onSave} value={this.state.value} options={options}/>
Option | Type | Required | Description |
---|---|---|---|
isEditing | boolean | optional | Set editing status |
isEditable | boolean | optional | You can make it readonly |
linkClassName | string | optional | Defined the css class for the link text |
nonValueText | string | optional | the default text if no value |
value | string | string[] | required |
multiple | boolean | optional | If the select support multiple |
options | IOption[] | string[] | required |
onSave | function | required | the callback when click save button |
onCancel | function | optional | the callback when click cancel button |
import {EditableTextArea} from 'react-bootstrap-xeditable';
<EditableTextArea name='username' value={this.state.value} onSave={this.onSave} placeholder='Please input your username'/>
Option | Type | Required | Description |
---|---|---|---|
isEditing | boolean | optional | Set editing status |
isEditable | boolean | optional | You can make it readonly |
linkClassName | string | optional | Defined the css class for the link text |
nonValueText | string | optional | the default text if no value |
value | string | required | The value of input text |
onSave | function | required | the callback when click save button |
onCancel | function | optional | the callback when click cancel button |
Element | Support | ReactXElement |
---|---|---|
textfield | :white_check_mark: | EditableTextField |
select | :white_check_mark: | EditableSelect |
textarea | :white_check_mark: | EditableTextArea |
date | :thought_balloon: | |
datetime | :thought_balloon: | |
select2 | :thought_balloon: |
d.ts already intergrated. just import it.
Licensed under the MIT license. Copyright (C) 2018 Kun Yan
FAQs
X-Editable for React with Bootstrap. [Demo](https://yankun.org/react-bootstrap-xeditable/)
The npm package react-bootstrap-xeditable receives a total of 184 weekly downloads. As such, react-bootstrap-xeditable popularity was classified as not popular.
We found that react-bootstrap-xeditable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.