PluginProbe
Depicter — Popup & Slider Builder / 1.3.2
Depicter — Popup & Slider Builder v1.3.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / app / src / Modules / Divi / includes / fields / Input / Input.jsx

Input.jsx in Depicter — Popup & Slider Builder 1.3.2, at app/src/Modules/Divi/includes/fields/Input/Input.jsx

36 lines 669 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // External Dependencies
2 import React, { Component } from 'react';
3
4 // Internal Dependencies
5 import './style.css';
6
7 class Input extends Component {
8
9 static slug = 'dedi_input';
10
11 /**
12 * Handle input value change.
13 *
14 * @param {object} event
15 */
16 _onChange = (event) => {
17 this.props._onChange(this.props.name, event.target.value);
18 }
19
20 render() {
21 return(
22 <input
23 id={`dedi-input-${this.props.name}`}
24 name={this.props.name}
25 value={this.props.value}
26 type='text'
27 className='dedi-input'
28 onChange={this._onChange}
29 placeholder='Your text here ...'
30 />
31 );
32 }
33 }
34
35 export default Input;
36