Hi There,
I want to change the label "As of" by inheriting this.
How can I do this?
Here's the full code:
class="{ 'filter_date_single_today_hook': true, 'selected': (controller.options.date.filter == 'today') }"
onSelected="() => this.updateFilter('date.filter', 'today')"
>
Today
class="{ 'filter_date_single_last_month_hook': true, 'selected': (controller.options.date.filter == 'last_month') }"
onSelected="() => this.updateFilter('date.filter', 'last_month')"
>
End of Last Month
class="{ 'filter_date_single_last_quarter_hook': true, 'selected': (controller.options.date.filter == 'last_quarter') }"
onSelected="() => this.updateFilter('date.filter', 'last_quarter')"
>
End of Last Quarter
class="{ 'filter_date_single_last_year_hook': true, 'selected': (controller.options.date.filter == 'last_year') }"
onSelected="() => this.updateFilter('date.filter', 'last_year')"
>
End of Last Financial Year
class="{ 'filter_date_this_month_hook': true, 'selected': (controller.options.date.filter == 'this_month') }"
onSelected="() => this.updateFilter('date.filter', 'this_month')"
>
This Month
class="{ 'filter_date_this_quarter_hook': true, 'selected': (controller.options.date.filter == 'this_quarter') }"
onSelected="() => this.updateFilter('date.filter', 'this_quarter')"
>
This Quarter
class="{ 'filter_date_this_year_hook': true, 'selected': (controller.options.date.filter == 'this_year') }"
onSelected="() => this.updateFilter('date.filter', 'this_year')"
>
This Financial Year
class="{ 'filter_date_range_last_month_hook': true, 'selected': (controller.options.date.filter == 'last_month') }"
onSelected="() => this.updateFilter('date.filter', 'last_month')"
>
Last Month
class="{ 'filter_date_range_last_quarter_hook': true, 'selected': (controller.options.date.filter == 'last_quarter') }"
onSelected="() => this.updateFilter('date.filter', 'last_quarter')"
>
Last Quarter
class="{ 'filter_date_range_last_year_hook': true, 'selected': (controller.options.date.filter == 'last_year') }"
onSelected="() => this.updateFilter('date.filter', 'last_year')"
>
Last Financial Year
class="dropdown-item date"
t-att-class="(controller.options.date.filter == 'custom') ? 'selected' : ''"
>
type="'date'"
value="dateFrom('date')"
onChange="(dateFrom) => this.setDateFrom('date', dateFrom)"
/>
type="'date'"
value="dateTo('date')"
onChange="(dateTo) => this.setDateTo('date', dateTo)"
/>
class="dropdown-item date"
t-att-class="(controller.options.date.filter == 'custom') ? 'selected' : ''"
>
type="'date'"
value="dateTo('date')"
onChange="(dateTo) => this.setDateTo('date', dateTo)"
/>