Loading...

checkbox

< Back To DOCS

Purpose

The <input type="checkbox"> element allows end user to toggle a value between true and false. Whenever the value is updated in firebase, the value on your web page will update too without even hitting refresh. If the input element id does not exist in firebase, firefight will automatically add it to firebase. HTML and firefight require all ids to be unique.

Sample: checkbox

HTML


            

Result

Firebase emulator

  • isImportant: {{isImportant}}

Click the checkbox (or text) and notice the value in the Firebase emulator change.

< Back To DOCS