Skip to content

Instantly share code, notes, and snippets.

@belackriv
belackriv / gist:008087f6f005aee1167f
Last active September 21, 2016 21:22
Marrionette Table without composite view
//
//Regions
//
var NoWrapRegion = Backbone.Marionette.Region.extend({
attachHtml: function (view) {
this.el.innerHTML="";
var children = view.el.childNodes;
while (children.length > 0) {
this.el.appendChild(children[0]);
var TabsLayoutView = Backbone.Marionette.LayoutView.extend({
initialize: function(options){
this.tabOneViewInstance = new TabOneiew();
this.tabTwoViewInstance = new TabTwoView();
this.tabThreeViewInstance = new TabThreeView();
},
template: "#tabs_layout_template",
regions: {
content: ".content-pane"
},
var DialogRegion = Backbone.Marionette.Region.extend({
el: '#form_dialog_div',
constructor: function () {
_.bindAll(this, "getEl", "showDialog", "hideDialog");
Backbone.Marionette.Region.prototype.constructor.apply(this, arguments);
this.on("show", this.showDialog, this);
},
getEl: function (selector) {
var $el = $(selector);
return $el;
using UnityEngine;
using System;
using System.Collections.Generic;
namespace BelacCorp
{
[KSPAddon(KSPAddon.Startup.SpaceCentre, true)]
public class BeamActionTracker : MonoBehaviour
{
public class BeamAction