Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73635

Organize example code in component library

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-73635-master
    • Hide
      Form elements example
      1. Run "grunt componentlibrary"
      2. Go to Site administration / Development / UI Component library
      3. Go to Moodle / Moodle Components / Form elements
      4. Confirm that the example form under "Example form elements" gets displayed properly.
      5. Click on the links under "Toggle the view of this form instance"
      6. Confirm that the form displays help/required buttons depending on the display mode that was clicked.
      Dynamic tabs
      1. Repeat tests in MDL-73436
      Documentation
      1. Go to Component library / Example files
      2. Check the documentation page for adding example files is rendered properly and that it makes sense.
      Show
      Form elements example Run " grunt componentlibrary " Go to Site administration / Development / UI Component library Go to Moodle / Moodle Components / Form elements Confirm that the example form under " Example form elements " gets displayed properly. Click on the links under " Toggle the view of this form instance " Confirm that the form displays help/required buttons depending on the display mode that was clicked. Dynamic tabs Repeat tests in MDL-73436 Documentation Go to Component library / Example files Check the documentation page for adding example files is rendered properly and that it makes sense.

      On MDL-73436's review, Jun suggested that we should separate the example code in the component library to help with the component maintenance.

      We started using these paths in the dynamictabs issue:
      classes/local/examples/<COMPONENT> for classes
      templates/examples/<COMPONENT> for templates

      This issue is about creating an "examples" folder where the files to be loaded in the iframe will be shown. Right now are being placed in the root folder and in some time it can be confusing to maintain.

            jpataleta Jun Pataleta
            davidcarrillo David Carrillo
            Simey Lameze Simey Lameze
            Shamim Rezaie Shamim Rezaie
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 21 minutes
                5h 21m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.