New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

react-bootstrap-xeditable

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-xeditable

X-Editable for React with Bootstrap

0.2.7
Version published
Weekly downloads
534
81.02%
Maintainers
2
Weekly downloads
 
Created

react-xeditable

X-Editable for React with Bootstrap

Install

# 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">

Usage:

textfield

<EditableTextField name='username' value={this.state.value} onUpdate={this.handleUpdate} placeholder='Please input your username'/>

select

const options = [
  {
    text: 'China',
    value: 'CN'
  }, {
    text: 'India',
    value: 'IN'
  }, {
    text: 'United Kingdom (UK)',
    value: 'UK'
  }, {
    text: 'United States of America (USA)',
    value: 'USA'
  }
];
<EditableSelect name='country' onUpdate={this.handleUpdate} value={this.state.value} options={options}/>

Progress:

  • :white_check_mark: : Supported
  • :runner: : In Progress
  • :thought_balloon: : Planning
ElementSupportReactXElement
textfield:white_check_mark:EditableTextField
select:white_check_mark:EditableSelect
textarea:white_check_mark:EditableTextArea
date:thought_balloon: 
datetime:thought_balloon: 
select2:thought_balloon: 

TypeScript:

Comming soon.

Known Issues:

  • Only support inline mode
  • onBlur not support yet

License

Licensed under the GPL-3.0 license. Copyright (C) 2016 Kun Yan

FAQs

Package last updated on 07 Mar 2017

Did you know?

Socket

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.

Install

Related posts