alpheios-project / embed-lib

Alpheios Embedded Library
Other
6 stars 0 forks source link

Add ability to define uiOptions default using embed code options #129

Closed irina060981 closed 3 years ago

irina060981 commented 3 years ago

For the issue https://github.com/alpheios-project/alignment-editor-new/issues/462 https://github.com/alpheios-project/alpheios-core/issues/655

new Embedded(
                {
                  clientId: 'embed-lib-index-demo',
                  authEnv: auth0Env,
                  disabledSelector:".customignore",
                  enabledClass: 'customenabled',
                  disabledClass: 'customdisabled',
                  languageOptions: {
                    lexiconsShort: {
                      lat: [ 'https://github.com/alpheios-project/paidea-glossary' ]
                    }
                  },
                  uiOptions: {
                    hidePopupOnClickAway: true
                  },
                  popupInitialPos: {
                    left: '150px',
                    top: '150px'
                  },
                  toolbarInitialPos: {
                    top: '5vh',
                    right: '5vw'
                  },
                }).activate();