Skip to content

Commit

Permalink
👌 Enable view mode in example
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jun 18, 2021
1 parent 773f79c commit 768e774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/examples/embedded_lens_example/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"requiredPlugins": [
"lens",
"data",
"embeddable",
"developerExamples"
],
"optionalPlugins": [],
Expand Down
2 changes: 2 additions & 0 deletions x-pack/examples/embedded_lens_example/public/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
} from '@elastic/eui';
import { IndexPattern } from 'src/plugins/data/public';
import { CoreStart } from 'kibana/public';
import { ViewMode } from 'src/plugins/embeddable/public';
import {
TypedLensByValueInput,
PersistedIndexPatternLayer,
Expand Down Expand Up @@ -212,6 +213,7 @@ export const App = (props: {
onTableRowClick={(_data) => {
// call back event for on table row click event
}}
viewMode={ViewMode.VIEW}
/>
{isSaveModalVisible && (
<LensSaveModalComponent
Expand Down

0 comments on commit 768e774

Please sign in to comment.