Loading...

Text

< Back To DOCS

Purpose

To add or update text in firebase, use an input or textarea tag with an id attribute. Whenever the value is updated in firebase, the value on your web page will update too without even hitting refresh. If the tags id does not exist in firebase, firefight will automatically add it to firebase. HTML and firefight require all ids to be unique.

Sample: simple text

HTML


            

Result

Firebase emulator

  • textToAdd:

Change "textToAdd" inside the firebase emulator, hit enter and notice how the result changes.

Sample: multi line text

HTML


            

Result

Firebase emulator

  • textToAdd2:

textarea works just like input, but allows multiple lines.

< Back To DOCS