Skip to content

CodePen Examples #3298

@lolaodelola

Description

@lolaodelola

Using Codepen is a great way to show the example code, however, the code is currently being posted to Codepen in a form, instead of being created and hosted on Codepen. This means that you can't actually share the Codepen example code. For example, in the Treegrid example, the APG Codepen code looks something like this (I've simplified it so it's easier to read and understand.

<form action="https://codepen.io/pen/define" method="POST" target="_blank">
   <input id="codepen-data-ex-0" type="hidden" name="data" value=
       "{
            <table id=\&quot;treegrid\&quot; role=\&quot;treegrid\&quot; aria-label=\&quot;Inbox\&quot;>\n  
              <colgroup>\n
                <col id=\&quot;treegrid-col1\&quot;>\n    
                <col id=\&quot;treegrid-col2\&quot;>\n    
                <col id=\&quot;treegrid-col3\&quot;>\n
              </colgroup>\n
            </table>
         }">
  <button id="ex_label-codepenbutton" style="">Open In CodePen</button>
</form>

This posts the data to CodePen but doesn't seem to generate a share link. Would APG be able to have a codepen account to host and easily share example code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions