dnet40/modules/uoa-admin-portal/branches/new-UI/src/app/pages/customization/customize-buttons.component.ts @ 60894
1 |
import {Component, Input} from '@angular/core'; |
---|---|
2 |
import {ButtonsCustomization} from '../../openaireLibrary/connect/community/CustomizationOptions'; |
3 |
|
4 |
|
5 |
@Component({ |
6 |
selector: 'customize-buttons', |
7 |
template: ` |
8 |
|
9 |
<div class="">
|
10 |
<border [style]="buttons.borderStyle" [width]=
|
11 |
"buttons.borderWidth" [radius]=
|
12 |
"buttons.borderRadius" (borderChange)=
|
13 |
" buttons.borderStyle = $event.style;
|
14 |
buttons.borderRadius = $event.radius;
|
15 |
buttons.borderWidth = $event.width; "></border>
|
16 |
<div class="uk-grid uk-child-width-1-2 uk-margin-top" >
|
17 |
<div class="">
|
18 |
<div class=" uk-margin-small-bottom uk-text-bold uk-margin-small-left">Colors</div>
|
19 |
<color [color]="buttons.color" (colorChange)=
|
20 |
" buttons.color = $event; "
|
21 |
label="Fonts"
|
22 |
></color>
|
23 |
<color [color]="buttons.backgroundColor" (colorChange)=
|
24 |
" buttons.backgroundColor = $event; "
|
25 |
label="Background" ></color>
|
26 |
<color [color]="buttons.borderColor" (colorChange)=
|
27 |
" buttons.borderColor = $event; "
|
28 |
label="Border"
|
29 |
|
30 |
></color>
|
31 |
</div>
|
32 |
<div>
|
33 |
<div class=" uk-margin-small-bottom uk-text-bold uk-margin-small-left">Colors on hover</div>
|
34 |
<div class="">
|
35 |
<color [color]="buttons.onHover.color" (colorChange)=
|
36 |
" buttons.onHover.color = $event;" label="Fonts"
|
37 |
></color>
|
38 |
<color [color]="buttons.onHover.backgroundColor"
|
39 |
(colorChange)=
|
40 |
" buttons.onHover.backgroundColor = $event;"
|
41 |
label="Background" ></color>
|
42 |
<color [color]="buttons.onHover.borderColor" (colorChange)=
|
43 |
" buttons.onHover.borderColor = $event;"
|
44 |
label="Border" ></color>
|
45 |
</div>
|
46 |
</div>
|
47 |
</div>
|
48 |
</div>
|
49 |
|
50 |
|
51 |
`, |
52 |
styles:[` `] |
53 |
|
54 |
})
|
55 |
|
56 |
export class CustomizeButtonsComponent { |
57 |
@Input() buttons:ButtonsCustomization; |
58 |
|
59 |
constructor() { |
60 |
}
|
61 |
|
62 |
}
|