How to use the @hpcc-js/other.Html function in @hpcc-js/other

To help you get started, we’ve selected a few @hpcc-js/other examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / tests / test-other / src / other.spec.ts View on Github external
["English III", 6, 43, 64, 93],
                                        ["Width Blank", 7, "", 52, 83],
                                        ["Geography II", 16, 73, 52, 83],
                                        ["Width 2 undefined", , 83, , 72],
                                        ["Science", 66, 60, 85, 6],
                                        ["Science II", 46, 20, 53, 7],
                                        ["With 2 NULL", null, 20, null, 7],
                                        ["Math", 98, 30, 23, 13],
                                        ["Math II", 76, 30, 34, 6],
                                        ["Math III", 80, 30, 27, 8]
                                    ])
                                    ;
                                render(table);
                                break;
                            case Html:
                                render(new Html()
                                    .html('<div style="border:1px solid red;padding:10px;margin:20px;font-size:24px;">Text in a div!</div>')
                                );
                                break;
                            case IconList:
                            case AutoCompleteText:
                                /*
                                render(new AutoCompleteText()
                                    .columns(["Col Label", "Col Value"])
                                    .data([
                                        ["Math", 0],
                                        ["Science", 1],
                                        ["Geography", 3],
                                        ["Irish", 5],
                                        ["English", 7],
                                        ["Spanish", 2],
                                        ["Physics", 4],