Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

dcc.Input : How to recognize "pattern" property match in callback

$
0
0

@RustyShackleford wrote:

I’m using the dcc.Input component with a regex on the pattern property. The input field turns red when the regex doesn’t match which is great. What I really want is to use the regex match status as an input for a callback. But I can’t figure out what property to use.

dbc.Input(
                id='input-ip',
                placeholder='Enter an ip address...',
                type='text',
                pattern=regex_ip_address,
            ),

@app.callback(Output('button-ok', 'disabled'),
              [Input('input-ip', '???')])

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles