muninn
GitHubExtensionWope
  • Introduction
  • Config
    • Basic
    • Selector
    • Array
    • Attribute
    • Type
    • Regex
    • Transform
    • Array Transform
    • Exist
    • Schema
    • Trim
    • Initial
    • Fill
    • HTML
    • Methods
Powered by GitBook
On this page

Was this helpful?

  1. Config

Initial

You can specify an initial value for a field. The value you set will remain unless a new value comes in.

HTML
<div class="parent">
  <div class="blue">Blue Text</div>
</div>
Config
{
    "greenText": {
        "selector": ".green",
        "initial": "Default Text"
    } 
}
Output
{
    "greenText": "Default Text" 
}

PreviousTrimNextFill

Last updated 3 years ago

Was this helpful?