Matterspace
aaaa
public void CreateCardView { | |
return new CardView(); | |
} |
// checking permission... | |
if (AccessControl.HasPermission(ac => ac.Matters.Participants.Add)) | |
{ | |
// the current user or group has access to the specificed action or field | |
} |
public static void SetupChangeTracking() | |
{ | |
// disables tracking for matter code | |
SetupProperty(matter => matter.Code, show: false); | |
// makes the matter issue date to be tracked as a "short date string" | |
SetupProperty(matter => matter.IssueDate, display: a => a.IssueDate.ToShortDateString()); | |
} |
public class MyMetadataProvider : FluentMetadataProvider | |
{ | |
public void SetupMetadata(MetadataContext ctx) | |
{ | |
var view = ctx.CreateView<Contact>(); | |
view.CreateGroup() | |
.AddProperty(m => m.Name).HasMaxLength(30).IsRequired() | |
.AddProperty(m => m.DateOfBirth) | |
.AddProperty(m => m.InvitationNumber).DisabledWhen(m => !m.EnableInvitation) | |
} |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) | |
/******/ return installedModules[moduleId].exports; |
.wp-search-form { | |
clear: both; | |
padding: 20px; | |
background-color: #EAEAEA; | |
overflow: hidden; | |
} | |
.text-wrapper { | |
display: inline-block; |
var currentValue; | |
/** | |
* Observes changes in the Redux store and calls onChange when the state changes | |
* @param store The Redux store | |
* @param selector A function that should return what you are observing. Example: (state) => state.routing.locationBeforeTransitions; | |
* @param onChange A function called when the observable state changed. Params are store, previousValue and currentValue | |
*/ | |
export default function observe(store, selector, onChange) { | |
if (!store) throw Error('\'store\' should be truthy'); | |
if (!selector) throw Error('\'selector\' should be truthy'); |
export horseman from ''node-horseman' // no ES2015 | |
// é equivalente a | |
module.exports = { horseman: require('node-horseman'); }; | |
// que é equivalente a | |
module.exports.horseman = require('node-horseman'); |