####BackboneJS Sort Collection asc/desc
//Create a new forum topic | |
http://d8.dev:3000/entity/node?_format=hal_json | |
{ | |
"_links": { | |
"type": { | |
"href": "http://d8.dev/rest/type/node/forum" | |
} | |
}, |
##Drupal 8 REST End Points and Examples
- Content-Type = application/hal+json
- X-CSRF-Token = http://d8.dev/rest/session/token
- Authorization = Basic Auth
- Accept = application/hal+json
####POST to Forums
####FizzBuzz.js
Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.
My top contenders, mostly based on popularity / community etc:
- Angular
- Backbone
- React
- Ember
Mostly about MVC (or derivatives, MVP / MVVM).
Element.prototype.hasClass = function (className) { | |
return new RegExp(' ' + className + ' ').test(' ' + this.className + ' '); | |
}; | |
Element.prototype.addClass = function (className) { | |
if (!this.hasClass(className)) { | |
this.className += ' ' + className; | |
} | |
return this; | |
}; |
#Set the ExecutionPolicy to allow execution of scripts
Set-ExecutionPolicy Unrestricted
#Connect to your Domain Controller(DC)
#Change the value after the -ComputerName to your know DC
Forms need to be able to pass state to deeply nested children, specifically validation state. You will need map React.Children in order to setState for each child. Unfortunately this doesn't solve the problem of of deeply nested inputs. In order to combat this we will need to use a recursive function to check against each nested level to see if it has an input for validation.
function recursiveCloneChildren(children) {
const that = this;
return React.Children.map(children, child => {
var childProps = {};
Scroll To Top - Vanilla Javacript