Useful Tip:
You can use this online Component builder to experiment before committing to code.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec imperdiet turpis. Curabitur aliquet pulvinar ultrices. Etiam at posuere leo. Proin ultrices ex et dapibus feugiat link example aenean purus leo, faucibus at elit vel, aliquet scelerisque dui. Etiam quis elit euismod, imperdiet augue sit amet, imperdiet odio. Aenean sem erat, hendrerit eu gravida id, dignissim ut ante. Nam consequat porttitor libero euismod congue.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis.
bower install <package>
npm install <package>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis.
PrismJS is used as the syntax highlighter here. You can build your own version via their website should you need to.
Useful Tip:
You can use this online Component builder to experiment before committing to code.
In your entry file (for exmple /index.html
) initialize your application as follows
mynamespace-myawesomecomponent
import
s)Component
and Composer
classesComposer
class by calling register
and passing it an object with a namespace: resolver
structure. Since the Suite
could be anywhere we need to both register the suite and our own namespace (NOTE: the suite must fall under the namespace fyn
because otherwise all internal calls will go wrong, this will be fixed in the future)Component.load
<mynamespace-myawesomecomponent></mynamespace-myawesomecomponent>
<script type="module">
import Component from '/node_modules/@fyn-software/component/component.js';
import Composer from '/node_modules/@fyn-software/component/composer.js';
Composer.register({
fyn: (n, t) => `/node_modules/@fyn-software/suite/${t}/${n.join('/')}.${t}`,
mynamespace: (n, t, ns) => `/${t}/${ [ns, ...n].join('/')}.${t}`,
});
Component.load('mynamespace-myawesomecomponent');
</script>
Next up is to create the code behind your component
/js/mynamespace/myawesomecomponent.js
.fyn.js
and ‘types.js’ files.FYN.Component
.properties
, this getter return an object with the properties of your component.ready
, this method is called by FYN.Component
when it is done initializing the properties and the template./js/mynamespace/myawesomecomponent.js
import * as FYN from '/node_modules/@fyn-software/component/fyn.js';
import * as Types from '/node_modules/@fyn-software/data/types.js';
class MyAwesomeComponent extends FYN.Compontent
{
static get properties()
{
return {
title: Types.String.default('This is my awesome component'),
};
}
ready()
{
this.on({
click: (e, t) => this.animate('flash'),
});
}
}
Finally let us create the template for our component.
/html/mynamespace/myawesomecomponent.html
.{{ }}
) and filling in the name of the property.<link rel="stylesheet" type="text/css" href="/node_modules/@fyn-software/suite/css/style.css">
<style>
:host {
display: grid;
grid-auto-flow: row;
grid-gap: 1em;
}
</style>
<h1>{{ title }}</h1>
Done! This is the minimal boilerplate.
/* ======= Base Styling ======= */
body {
font-family: 'Open Sans', arial, sans-serif;
color: #333;
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/*
* Template Name: prettyDocs - Responsive Website Template for documentations
* Version: 1.0
* Author: Xiaoying Riley
* License: Creative Commons Attribution 3.0 License
* Twitter: @3rdwave_themes
* Website: http://themes.3rdwavemedia.com/
*/
@import "mixins.less";
@import "theme-default.less";
@import "base.less";
@import "doc.less";
@import "landing.less";
@import "responsive.less";
#main {
$width: 5em;
width: $width;
}
#sidebar {
width: $width;
}
<script>
function myFunction(a, b) {
return a * b;
}
document.getElementById("demo").innerHTML = myFunction(4, 3);
</script>
>>> x = int(input("
Please enter an integer: ")) Please enter an integer: 42
>>> if x < 0:
... x = 0
... print('Negative changed to zero')
... elif x == 0:
... print('Zero')
... elif x == 1:
... print('Single')
... else:
... print('More')
... More
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
echo $txt;
echo "<br>";
echo $x;
echo "<br>";
echo $y;
?>
$ git add Documentation.txt
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium <code>
, Nemo enim ipsam voluptatem quia voluptas link example sit aspernatur aut odit aut fugit.
Nunc hendrerit odio quis dignissim efficitur. Proin ut finibus libero. Morbi posuere fringilla felis eget sagittis. Fusce sem orci, cursus in tortor link example tellus vel diam viverra elementum.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Link example aenean commodo ligula eget dolor.
Morbi eget interdum sapien. Donec sed turpis sed nulla lacinia accumsan vitae ut tellus. Aenean vestibulum Link example maximus ipsum vel dignissim. Morbi ornare elit sit amet massa feugiat, viverra dictum ipsum pellentesque.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis.
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec imperdiet turpis. Curabitur aliquet pulvinar ultrices. Etiam at posuere leo. Proin ultrices ex et dapibus feugiat link example aenean purus leo, faucibus at elit vel, aliquet scelerisque dui. Etiam quis elit euismod, imperdiet augue sit amet, imperdiet odio. Aenean sem erat, hendrerit eu gravida id, dignissim ut ante. Nam consequat porttitor libero euismod congue.
AppKit - Bootstrap Angular Admin Theme for Developers
Love this free documentation theme?
Check out AppKit - an Angular admin theme I created with my developer friend Tom Najdek for developers. AppKit uses modern front-end technologies and is packed with useful components and widgets to speed up your app development.
[Tip for developers]: If your project is Open Source, you can use this area to promote your other projects or hold third party adverts like Bootstrap and FontAwesome do!