How to use the laravel-nova.SingularOrPlural function in laravel-nova

To help you get started, we’ve selected a few laravel-nova examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swisnl / laravel-nova-mirror / resources / js / components / Metrics / Base / TrendMetric.vue View on Github external
formattedSuffix() {
            return SingularOrPlural(this.value, this.suffix)
        },
    },
github swisnl / laravel-nova-mirror / resources / js / components / Metrics / Base / ValueMetric.vue View on Github external
formattedSuffix() {
            return SingularOrPlural(this.value, this.suffix)
        },
    },
github swisnl / laravel-nova-mirror / resources / js / components / Metrics / Base / TrendMetric.vue View on Github external
transformTooltipTextFnc: value => {
                        if (this.prefix) {
                            return `${this.prefix}${value}`
                        }

                        if (this.suffix) {
                            const suffix = SingularOrPlural(value, this.suffix)

                            return `${value} ${suffix}`
                        }

                        return `${value}`
                    },
                }),

laravel-nova

Supporting modules for Laravel Nova

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis