This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wp-search-form { | |
| clear: both; | |
| padding: 20px; | |
| background-color: #EAEAEA; | |
| overflow: hidden; | |
| } | |
| .text-wrapper { | |
| display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******/ (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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // checking permission... | |
| if (AccessControl.HasPermission(ac => ac.Matters.Participants.Add)) | |
| { | |
| // the current user or group has access to the specificed action or field | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void CreateCardView { | |
| return new CardView(); | |
| } |
NewerOlder