Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-996

Make nuxeo-suggester customizable

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web UI

      Description

      Currently nuxeo-app.html contains

       <nuxeo-suggester id="suggester"></nuxeo-suggester>
      

      which makes it impossible to override the suggest bar on top on the UI.

       Some customers are requesting to make changes with
       

      1. replace the current code with a slot
        <nuxeo-slot name="DOCUMENT_SUGGESTER"></nuxeo-slot>
        
      2. move these lines to a the nuxeo-suggester element
        <nuxeo-keys keys="/ ctrl+space s" on-pressed="_showSuggester"></nuxeo-keys>
        
        {
        _showSuggester(e) {    
           e.detail.keyboardEvent.preventDefault();
           this.$.suggester.toggle();  // Ajuster l'appel de fonction
        },
      3. add a contribution for this new slot
        <nuxeo-slot-content name="documentSuggester" slot="DOCUMENT_SUGGESTER">  
          <template>    
            <nuxeo-suggester id="suggester"></nuxeo-suggester> 
          </template>
        </nuxeo-slot-content>
        

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: