mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Improved tooltip rendering speed
This commit is contained in:
parent
c31c130ffd
commit
45f216b8a1
5 changed files with 74315 additions and 11660 deletions
|
@ -1,3 +1,5 @@
|
|||
/* eslint-disable ember/no-classic-classes */
|
||||
/* eslint-disable ember/require-tagless-components */
|
||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||
//
|
||||
// This software (Documize Community Edition) is licensed under
|
||||
|
@ -22,6 +24,10 @@ export default Component.extend({
|
|||
icon: '',
|
||||
tooltip: '',
|
||||
selected: false,
|
||||
attributeBindings: ['title'],
|
||||
title: computed('tooltip', function() {
|
||||
return this.tooltip;
|
||||
}),
|
||||
|
||||
calcClass: computed('selected', function() {
|
||||
let c = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue