jQWidgets Forums

jQuery UI Widgets Forums React Read Only for JqxInput

This topic contains 1 reply, has 1 voice, and was last updated by  mjcee 7 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Read Only for JqxInput #99772

    mjcee
    Participant

    I am unable to make my React JxqInput field readonly. Based on an old post, I added readonly to my field definition as shown below but it did not work. What am I missing?

    `import React, { Component } from ‘react’;

    import JqxInput from ‘./assets/jqwidgets-react/react_jqxinput’;

    class App extends Component {
    render() {
    return (
    <JqxInput width= {100} height= {25} readonly />
    );
    }
    }

    export default App;

    Read Only for JqxInput #99773

    mjcee
    Participant

    Sorry, I missed the close tag. The code should be:

    
    import React, { Component } from 'react';
    
    import JqxInput from './assets/jqwidgets-react/react_jqxinput';
    
    class App extends Component {
        render() {
            return (
                <JqxInput width= {100} height= {25} readonly  />
            );
        }
    }
    
    export default App;
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.