View App.js
// We can listen for events (e.g., 'press. or 'focuswithin') that are fired from responders, | |
// if they are allowed to bubble. | |
// | |
// context.dispatchEvent(eventObject, listener, eventPriority, bubbles) | |
// | |
// This allows us to prevent certain events from bubbling up the tree, e.g., 'focus', 'scroll'. | |
import React, {useRef, useState} from 'react'; | |
import {Pressable, Text, View} from 'react-ui'; | |
import {PressListener} from 'react-events/press'; |
View flight-groups.js
var TweetBox = defineComponent(function() { | |
this.attributes({ | |
charLimit: 140 | |
withGeoControl: false; | |
}); | |
if (withGeoControl === true) { | |
// attach to a sub node | |
this.child(GeoControl).attachTo('.GeoControl'); | |
} |
View inline-block-example.html
<div class="ibw"> | |
<div class="ib">inline block</div> | |
<div class="ib">inline block</div> | |
<div class="ib">inline block</div> | |
</div> |
View style.css
/** | |
* HTML5 ✰ Boilerplate | |
* | |
* style.css contains a reset, font normalization and some base styles. | |
* | |
* Credit is left where credit is due. | |
* Much inspiration was taken from these projects: | |
* - yui.yahooapis.com/2.8.1/build/base/base.css | |
* - camendesign.com/design/ | |
* - praegnanz.de/weblog/htmlcssjs-kickstart |