Skip to content

Commit

Permalink
adding example for solid
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Apr 12, 2023
1 parent 206fa69 commit 7fb73f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
19 changes: 12 additions & 7 deletions website/docs/examples/frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ sidebar_position: 1
# Frameworks

import reactLogo from '/img/reactLogo.png';
import vueLogo from '/img/vueLogo.png';
import svelteLogo from '/img/svelteLogo.png';
import angularLogo from '/img/angularLogo.png';
import solidLogo from '/img/solidLogo.png';
import vanillaJSLogo from '/img/vanillaJSLogo.png';

<img src={reactLogo} width="30" style={{float: 'left', marginRight: '10px', marginTop: '22px'}} />

Expand All @@ -14,8 +19,6 @@ Make sure to use the `active-table-react` package and define the element tag as

[Click for Live Example](https://codesandbox.io/s/active-table-react-cstm7k?file=/src/App.tsx)

import vueLogo from '/img/vueLogo.png';

<img src={vueLogo} width="28" style={{float: 'left', marginRight: '10px', marginTop: '27px'}} />

## Vue
Expand All @@ -26,8 +29,6 @@ the simple steps outlined [here](https://vuejs.org/guide/extras/web-components.h
[Click for Live Example - Vue 3](https://codesandbox.io/s/active-table-vue3-z729vs?file=/src/App.vue) <br />
[Click for Live Example - Vue 2](https://codesandbox.io/s/active-table-vue2-32f04e?file=/src/App.vue)

import svelteLogo from '/img/svelteLogo.png';

<img src={svelteLogo} width="23" style={{float: 'left', marginRight: '13px', marginTop: '25px'}} />

## Svelte
Expand All @@ -36,8 +37,6 @@ Everything should be working right out of the box!

[Click for Live Example](https://codesandbox.io/s/active-table-svelte-dbd0qp)

import angularLogo from '/img/angularLogo.png';

<img src={angularLogo} width="36" style={{float: 'left', marginRight: '9px', marginTop: '22px'}} />

## Angular
Expand All @@ -47,7 +46,13 @@ as `import 'active-table';`. See this [blog](https://www.thisdot.co/blog/how-to-

[Click for Live Example](https://codesandbox.io/s/active-table-angular-9v8nfe?file=/src/app/app.component.html)

import vanillaJSLogo from '/img/vanillaJSLogo.png';
<img src={solidLogo} width="28" style={{float: 'left', marginRight: '12px', marginTop: '25px'}} />

## Solid

Make sure to declare a `solid-js` module when working with TypeScript and use hyphen-case syntax for properties that are accessed directly through markup.

[Click for Live Example](https://codesandbox.io/p/sandbox/magical-smoke-1ntsqs?file=%2Fsrc%2FApp.tsx&selection=%5B%7B%22endColumn%22%3A41%2C%22endLineNumber%22%3A16%2C%22startColumn%22%3A41%2C%22startLineNumber%22%3A16%7D%5D)

<img src={vanillaJSLogo} width="28" style={{float: 'left', marginRight: '12px', marginTop: '25px'}} />

Expand Down
1 change: 1 addition & 0 deletions website/src/components/nav/autoNavToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function readdAutoNavShadowToggle() {
export function fadeIn() {
setTimeout(() => {
const element = document.querySelectorAll('.plugin-pages > body > #__docusaurus > nav')?.[0];
// WORK
try {
element.classList.add('fade-in');
} catch (e) {
Expand Down
Binary file added website/static/img/solidLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7fb73f8

Please sign in to comment.