Sha256: ff2ad93cb978f548c1f2f3e726175abbfacaff9255008504a32a639203c8e340

Contents?: true

Size: 1.1 KB

Versions: 32

Compression:

Stored size: 1.1 KB

Contents

var Beacon = React.createClass({displayName: "Beacon",
    componentDidMount: function () {

    },
    handleAddPressed: function() {
        var resource = {rid: this.props.beacon.rid, type: "DYNAMIC", model: "IBEACON", proximity: {}};

        this.props.addResource(resource);
        this.props.updateResource(resource);
    },
    render: function () {
        var self = this;

        return(
            React.createElement("tr", null, 
                React.createElement("td", {className: "col-md-12 col-sm-12 col-xs-12"}, 
                    React.createElement("div", {className: "col-md-4 col-sm-4 col-xs-4"}, React.createElement("div", {className: "vertical-center"}, React.createElement("span", null, this.props.beacon.rid))), 

                    React.createElement("div", {className: "right"}, 
                        React.createElement("button", {type: "button", className: "btn btn-default", onClick: this.handleAddPressed}, React.createElement("span", {className: "glyphicon glyphicon-plus", "aria-hidden": "true"}))
                    )

                )
            )
        );

    }
});

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
nutella_framework-0.6.4 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.6.3 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.6.2 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.6.1 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.6.0 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.5.1 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.5.0 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.4.32 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.4.31 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.4.30 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.4.29 framework_components/room-places-interface/js/react/dist/beacon.js
nutella_framework-0.4.28 framework_components/room-places-interface/js/react/dist/beacon.js