Documentation
Page Appearance
File name:- /src/app/store/setting/state.ts
-
page_layout
- for layout of page there are 2 options given below. Values are in string."page_layout": "container-fluid", choices: 'container', 'container-fluid'
-
theme_style_appearance
- for card apperance there are 4 options given below. Values are in array."theme_style_appearance": " ["theme-default"], choices: 'theme-default', 'theme-flat', 'theme-bordered', 'theme-sharp'
-
theme_transition
- for animation of page there are 2 options given below. Values are in string."theme_transition": "theme-with-animation", choices: 'theme-without-animation', 'theme-with-animation'
-
card_color
- for card design there are 3 options given below. Values are in string."card_color": "card-glass", choices: 'card-default', 'card-glass', 'card-transparent'
There are two ways you can change the setting of your page:
With the use of live customizer
You can work on page style using Live Customizer in three different ways:
-
You can change the page style and its appearance with the property name and its value here by
declaring property name and its values in
gulp.config.json
file.- This is the example ofgulp.config.json
file."options":{ "saveLocal": "sessionStorage", "storeKey": "huisetting", "setting":{ "app_name": { "value" : "Hope UI" }, "page_layout": {"value" : "container-fluid"}, "theme_transition": {"value" : "theme-with-animation"}, "card_color": {"value" : "card-glass"}, "theme_style_appearance": {"value": []} } },
-
Go to the live customizer and click on the
'Copy Config'
button available at the top-right to copy the json file from the setting panel. Paste the copied code in theIQSetting(setting_options)
at thesetting-init.js
file.-Before
let setting_options = document.querySelector('meta[name="setting_options"]') setting_options = JSON.parse(setting_options.getAttribute('content')) const setting = window.IQSetting = new IQSetting(setting_options);
-After
let setting_options = document.querySelector('meta[name="setting_options"]') setting_options = JSON.parse(setting_options.getAttribute('content')) const setting = window.IQSetting = new IQSetting({ "saveLocal": "sessionStorage", "storeKey": "huisetting", "setting": { "app_name": {"value": "Hope UI"}, "page_layout": {"value" : "container-fluid"}, "theme_transition": {"value" : "theme-with-animation"}, "card_color": {"value" : "card-glass"}, "theme_style_appearance": {"value": []} } });
-
You can change the page style and its appearance by adding property name and its values in the
<meta>
tag given in<head>
section.- This is the example of<meta>
data<head> <meta name="setting_options" content="{ "saveLocal":"sessionStorage", "storeKey":"huisetting", "setting":{ "app_name":{"value":"Hope UI"}, "page_layout": {"value" : "container-fluid"}, "theme_transition": {"value" : "theme-with-animation"}, "card_color": {"value" : "card-glass"}, "theme_style_appearance": {"value": []} } }> </head>
Manual
You can change the page style and appearance with a single action.
-
By adding some
classes
in parent div section. Example is given below.
Page Style
If you wish to change the page style, you can follow the below action.
For example you have to set page style as boxed
then you will have to add
container
class at main
section.
<main class = "main-content">
<div class = ".... container">
.......
</div>
<main>
<main class = "main-content">
<div class = ".... container-fluid">
.......
</div>
<main>
Page Style Appearance
If you wish to change the page style appearance, you can follow the below action.
For example you have to set page style appearance as flat
then you will have to
add theme-flat
class at body
tag.
<body class=".... theme-flat">
.......
</body>
<body class=".... theme-bordered">
.......
</body>;
<body class=".... theme-sharp">
.......
</body>;
Page Animation
If you wish to change the page animation, you can follow the below action.
For example you have to set page animation as without-animation
then you will
have to add without-page-animation
class at body
tag.
<body class = "..... without-page-animation">
.......
<body>
<body class = "..... theme-with-animation">
.......
<body>
Card Design
If you wish to change the card design, you can follow the below action.
For example you have to set card as card-glass
then you will have to add
card-glass
class at body
tag.
<body class = "..... card-glass">
.......
<body>
<body class = "..... card-transparent">
.......
<body>
<body class = "..... card-default">
.......
<body>