“Cegah modal bootstrap dari tutup saat mengklik di luar” Kode Jawaban

Bootstrap Modal Popup Nonaktifkan Klik Di Luar

 <button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">
    Launch demo modal
 </button>
Lively Ladybird

Cegah modal bootstrap dari tutup saat mengklik di luar

<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false">
SeriousMonk

Bootstrap Modal Popup Backdrop False

<button class='btn btn-danger fa fa-trash' data-toggle='modal' data-target='#deleteModal' data-backdrop='static' data-keyboard='false'></button>
Foolish Flamingo

Cegah Modal Tutup Saat Klik Di Luar

$('#myModal').modal({
    backdrop: 'static',
    keyboard: false
})

or in HTML
<a data-controls-modal="your_div_id" data-backdrop="static" data-keyboard="false" href="#">
Zidane (Vi Ly - VietNam)

modal bootstrap mencegah tutup

$('#myModal').modal({backdrop: 'static', keyboard: false})  
Talented Tarsier

Hentikan modal dari penutupan klik luar

Set the modal's backdrop to static. The modal component has a prop of backdrop, set that to backdrop="static"

<div>
    <Modal show={this.state.show} onHide={this.handleClose} backdrop="static">
        <Modal.Header>
            <Modal.Title>Change Password</Modal.Title>
        </Modal.Header>
        <Modal.Body>
            <form className="form-horizontal" style={{margin:0}}>
                <div className='password-heading'>This is the first time you have logged in.</div>
                <div className='password-heading'>Please set a new password for your account.</div>
                <br/>

                <label className="password">Password
                    <input type={this.state.type} className="password__input" onChange={this.passwordStrength}/>
                    <span className="password__show" onClick={this.showHide}>{this.state.type === 'input' ? 'Hide' : 'Show'}</span>
                    <span className="password__strength" data-score={this.state.score}>
                        <div className="strength_string">{this.state.strength}</div>
                    </span>
                </label>
                <br/>
                <label className="password">Confirm Password
                    <input type={this.state.type} className="password__input" onChange={this.passwordStrength}/>
                </label>

            </form>
            <br/>
        </Modal.Body>
        <Modal.Footer>
            <Button onClick={this.submitPassword} disabled={this.state.isDisabled}>Submit</Button>
        </Modal.Footer>
    </Modal>
</div>
shafeeque

Jawaban yang mirip dengan “Cegah modal bootstrap dari tutup saat mengklik di luar”

Pertanyaan yang mirip dengan “Cegah modal bootstrap dari tutup saat mengklik di luar”

Lebih banyak jawaban terkait untuk “Cegah modal bootstrap dari tutup saat mengklik di luar” di HTML

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya