[plugins-functionality | DONE | CHANGED ] full width option
This commit is contained in:
parent
e7bbe7a359
commit
8ee93a7239
|
@ -4,6 +4,7 @@ import {PluginBaseComponent, PluginBaseInfo, PluginURL} from "../../utils/base-p
|
||||||
export class HTMLSection extends PluginBaseInfo{
|
export class HTMLSection extends PluginBaseInfo{
|
||||||
title:string ="Lorem ipsum"
|
title:string ="Lorem ipsum"
|
||||||
html:string = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`;
|
html:string = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`;
|
||||||
|
fullWidth:boolean = true;
|
||||||
compare(oldObject): any {
|
compare(oldObject): any {
|
||||||
let newObj= super.compare(oldObject);
|
let newObj= super.compare(oldObject);
|
||||||
return newObj;
|
return newObj;
|
||||||
|
@ -12,8 +13,10 @@ export class HTMLSection extends PluginBaseInfo{
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'plugin-html-section',
|
selector: 'plugin-html-section',
|
||||||
template: `
|
template: `
|
||||||
|
<div [class]="pluginObject.fullWidth?'':'uk-container uk-container-large'">
|
||||||
<h2>{{pluginObject.title}}</h2>
|
<h2>{{pluginObject.title}}</h2>
|
||||||
<div class="" [innerHTML]="pluginObject.html">
|
<div [innerHTML]="pluginObject.html">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
|
|
@ -13,6 +13,12 @@ import {HTMLSection} from "./plugin-html-section.component";
|
||||||
<plugin-field-edit [value]="pluginObject.html" [switchToHTMLEditor]="true"
|
<plugin-field-edit [value]="pluginObject.html" [switchToHTMLEditor]="true"
|
||||||
type="textarea" field="html" (changed)="valueChanged($event)"></plugin-field-edit>
|
type="textarea" field="html" (changed)="valueChanged($event)"></plugin-field-edit>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="uk-margin-xsmall-bottom uk-margin-xsmall-top">
|
||||||
|
<plugin-field-edit [value]=" pluginObject.fullWidth"
|
||||||
|
type="checkbox" field="fullWidth" (editClicked)="pluginEditEvent = $event"
|
||||||
|
(changed)="valueChanged($event)">
|
||||||
|
</plugin-field-edit>Full width
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
`,
|
`,
|
||||||
|
|
|
@ -41,7 +41,7 @@ declare var UIkit;
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="page_content_inner" class="uk-container uk-container-large">
|
<div id="page_content_inner" [class]="fullWidth?'':'uk-container uk-container-large'">
|
||||||
<div [ngClass]="!isMobile?'uk-padding-small uk-padding-remove-vertical':''">
|
<div [ngClass]="!isMobile?'uk-padding-small uk-padding-remove-vertical':''">
|
||||||
<ng-content select="[inner]"></ng-content>
|
<ng-content select="[inner]"></ng-content>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,6 +61,8 @@ export class PageContentComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
public headerSticky: boolean = false;
|
public headerSticky: boolean = false;
|
||||||
@Input()
|
@Input()
|
||||||
public border: boolean = true;
|
public border: boolean = true;
|
||||||
|
@Input()
|
||||||
|
public fullWidth: boolean = false;
|
||||||
public offset: number;
|
public offset: number;
|
||||||
public shouldSticky: boolean = true;
|
public shouldSticky: boolean = true;
|
||||||
public isMobile: boolean = false;
|
public isMobile: boolean = false;
|
||||||
|
|
Loading…
Reference in New Issue