Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12039

Decide what should be the names of React SDK components (API)

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Done
    • None
    • None
    • None
    • None
    • 1
    • Tiger
    • Tiger Sprint 214

    Description

      In the result, there will be the following components exposed to the SPA developer:
      1) CmsPage
      2) CmsContainer
      3) CmsComponent
      4) CmsEditButton

      These components can be renamed to something product specific, for example:
      CmsPage -> BrXMPage, BrPage, BRPage, XmPage, etc.

      Here is a code sample where it's going to be used:

              <CmsPage componentDefinitions={componentDefinitions}>
                  <div id='header'>
                    <nav className='navbar navbar-expand-md navbar-dark bg-dark'>
                      <span className='navbar-brand'>Server-side React Demo</span>
                      <button className='navbar-toggler' type='button' data-toggle='collapse' data-target='#navbarCollapse'
                              aria-controls='navbarCollapse' aria-expanded='false' aria-label='Toggle navigation'>
                        <span className='navbar-toggler-icon' />
                      </button>
                      <div className='collapse navbar-collapse' id='navbarCollapse'>
                        <CmsComponent path='menu' renderComponent={CmsMenu} />
                      </div>
                    </nav>
                  </div>
                  <div className='container marketing'>
                    <CmsComponent />
                  </div>
            </CmsPage>
      

      Document in SDK technical design.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mdokolin Mikhail Dokolin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: