- | Empty text field, required |
-
-
+ React X-editable Demo
+
+ Example
+ Popup Mode: (click to edit)
+
+
+
+ | Type |
+ Example |
+
+
+ |
+
+
+
+
+ | Simple text field |
+
+ {
- if(!value){
- return 'Required';
- }
- }}
/>
- |
-
-
- | Simple textarea |
-
-
- |
-
-
- | Simple select with customizable display |
-
-
+ {``}
+
+
+ |
+
+
+ |
+
+
+
+ | Empty text field, required |
+
+ {
+ if(!value){
+ return 'Required';
+ }
+ }}
+ />
+
+ {` {
+ if(!value){
+ return 'Required';
+ }
+ }}
+/>`}
- dataType="select"
- name={"city"}
+
+ |
+
+
+ |
+
+
+ | Simple textarea |
+
+ {value});
- }}
- />
- |
-
-
- | Simple checkbox list |
-
-
- |
-
-
- | Custom component |
-
- {
- return( );
- }}
+
+ {``}
+
+
+ |
+
+
+ |
+
+
+ | Simple select with customizable display |
+
+ {value});
+ }}
/>
- |
-
-
- | Simple text field with disable |
-
-
- |
-
-
-
-
- Inline mode:
-
-
-
- | Simple text field |
-
-
- |
-
-
- | Empty text field, required with no buttons |
-
+
+ {` {value});
+ }}
+/>`}
+
+
+ |
+
+
+ |
+
+
+ | Simple checkbox list |
+
+
+
+ {``}
+
+
+ |
+
+
+ |
+
+
+ | Custom component |
+
+ {
+ return( );
+ }}
+ />
+
+ {`{
+ return( );
+ }}
+/>`}
+
+
+ |
+
+
+ |
+
+
+ | Simple text field with disable |
+
{
- if(!value){
- return 'Required';
- }
- }}
+ placement="right"
+ value="ni3galave"
+ showButtons={true}
+ disabled={false}
/>
- |
-
-
- | Simple textarea |
-
-
- |
-
-
- | Simple select with customizable display |
-
+
+ {``}
+
+
+ |
+
+
+
+ |
+
+
+
+
+ Inline mode:
+
+
+
+ | Simple text field |
+
City: {value});
- }}
- />
+ name="usernameDD"
+ dataType="text"
+ mode={"inline"}
+ title="Enter username"
+ value="ni3galave"
+ />
+
+ {``}
+
+
+ |
+
+
+ |
+
+
+ | Empty text field, required with no buttons |
+
+ {
+ if(!value){
+ return 'Required';
+ }
+ }}
+ />
+
+ {` {
+ if(!value){
+ return 'Required';
+ }
+ }}
+/>`}
+
+
+ |
+
+
+ |
+
+
+ | Simple textarea |
+
+
+
+ {``}
+
+
+ |
+
+
+ |
+
+
+ | Simple select with customizable display |
+
+ City: {value});
+ }}
+ />
+
+ {`City: {value});
+ }}
+/>`}
+
+
+ |
+
+
+ |
+
+
+ | Custom component |
+
+ {
+ return( );
+ }}
+ display={function(value){
+ return ({value.city}, {value.street}, {value.building});
+ }}
+ />
+
+ {`{
+ return( );
+ }}
+ display={function(value){
+ return ({value.city}, {value.street}, {value.building});
+ }}
+/>`}
+
+
|
-
-
- | Custom component |
- {
- return( );
- }}
- display={function(value){
- return ({value.city}, {value.street}, {value.building});
- }}
- />
+
|
-
-
-
-
- )
- }
+ |
+