@darwino/darwino-react-bootstrap-notes
Version:
A set of Javascript classes and utilities
46 lines (38 loc) • 1.19 kB
JavaScript
/*
* (c) Copyright Darwino Inc. 2014-2017.
*/
import React, { Component } from 'react';
import { Navbar } from 'react-bootstrap';
import { DocumentForm } from '@darwino/darwino-react-bootstrap';
/*
*/
export class FormPage extends DocumentForm {
constructor(props, context) {
super(props, context);
}
createActionBar() {
var children = [];
if (this.contributeActionBar) children.push(this.contributeActionBar());
this._getRegisteredComponents().forEach(f => {
if (f.contributeActionBar) {
var b = f.contributeActionBar();
if (b) children.push(b);
}
});
if (children.length) {
return /*#__PURE__*/React.createElement(Navbar, {
fluid: true,
role: "toolbar",
className: "action-bar"
}, /*#__PURE__*/React.createElement(Navbar.Header, null, /*#__PURE__*/React.createElement(Navbar.Toggle, null)), /*#__PURE__*/React.createElement(Navbar.Collapse, null, children));
}
return null;
} // Send the calculated properties by default
getUpdateProperties() {
return {
computedValues: this.computedValues
};
}
}
export default FormPage;
//# sourceMappingURL=FormPage.js.map