Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47b4d1aa5b | ||
|
|
614d768eea | ||
|
|
db67b864ee | ||
|
|
c47b401a1d | ||
|
|
3c330465dd |
@@ -27,7 +27,7 @@ const header = {
|
||||
ref: 'HeaderColorSchema',
|
||||
type: 'string',
|
||||
component: 'dropdown',
|
||||
label: 'BackGround Header Color',
|
||||
label: 'Background Header Color',
|
||||
options: [
|
||||
{
|
||||
value: 'Clean',
|
||||
|
||||
@@ -9,15 +9,16 @@ import pijamaColorLibrary from './pijama-color-library';
|
||||
const definition = {
|
||||
component: 'accordion',
|
||||
items: {
|
||||
dimensions: {
|
||||
max: 2,
|
||||
min: 1,
|
||||
uses: 'dimensions'
|
||||
},
|
||||
measures: {
|
||||
max: 9,
|
||||
min: 1,
|
||||
uses: 'measures'
|
||||
data: {
|
||||
items: {
|
||||
dimensions: {
|
||||
disabledRef: ''
|
||||
},
|
||||
measures: {
|
||||
disabledRef: ''
|
||||
}
|
||||
},
|
||||
uses: 'data'
|
||||
},
|
||||
settings: {
|
||||
items: {
|
||||
|
||||
12
src/index.js
12
src/index.js
@@ -12,6 +12,18 @@ export default {
|
||||
'$timeout',
|
||||
function () { }
|
||||
],
|
||||
data: {
|
||||
dimensions: {
|
||||
max: 2,
|
||||
min: 1,
|
||||
uses: 'dimensions'
|
||||
},
|
||||
measures: {
|
||||
max: 9,
|
||||
min: 1,
|
||||
uses: 'measures'
|
||||
}
|
||||
},
|
||||
definition,
|
||||
initialProperties: {
|
||||
qHyperCubeDef: {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
.qv-object-qlik-smart-pivot {
|
||||
@TableBorder: 1px solid #d3d3d3;
|
||||
@KpiTableWidth: 230px;
|
||||
|
||||
.edit-mode{
|
||||
pointer-events: none;
|
||||
}
|
||||
._cell(@Width: 50px) {
|
||||
min-width: @Width!important;
|
||||
max-width: @Width!important;
|
||||
|
||||
@@ -11,10 +11,10 @@ export default async function paint ($element, layout, component) {
|
||||
component,
|
||||
layout
|
||||
});
|
||||
|
||||
const editmodeClass = component.inAnalysisState() ? '' : 'edit-mode';
|
||||
const jsx = (
|
||||
<React.Fragment>
|
||||
<div className="kpi-table">
|
||||
<div className={`kpi-table ${editmodeClass}`}>
|
||||
<HeadersTable
|
||||
data={state.data}
|
||||
general={state.general}
|
||||
@@ -29,7 +29,7 @@ export default async function paint ($element, layout, component) {
|
||||
styling={state.styling}
|
||||
/>
|
||||
</div>
|
||||
<div className="data-table">
|
||||
<div className={`data-table ${editmodeClass}`}>
|
||||
<HeadersTable
|
||||
data={state.data}
|
||||
general={state.general}
|
||||
|
||||
Reference in New Issue
Block a user