How to use the ghost/views/mobile/content-view.extend function in ghost

To help you get started, we’ve selected a few ghost examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TryGhost / Ghost-Admin / app / views / posts / post.js View on Github external
import MobileContentView from 'ghost/views/mobile/content-view';

var PostsPostView = MobileContentView.extend();

export default PostsPostView;
github TryGhost / Ghost / core / client / app / views / posts / post.js View on Github external
import MobileContentView from 'ghost/views/mobile/content-view';

var PostsPostView = MobileContentView.extend();

export default PostsPostView;
github TryGhost / Ghost-Admin / views / settings / content-base.js View on Github external
import MobileContentView from 'ghost/views/mobile/content-view';
/**
 * All settings views other than the index should inherit from this base class.
 * It ensures that the correct screen is showing when a mobile user navigates
 * to a `settings.someRouteThatIsntIndex` route.
 */

var SettingsContentBaseView = MobileContentView.extend({
    tagName: 'section',
    classNames: ['settings-content', 'js-settings-content', 'fade-in']
});

export default SettingsContentBaseView;
github TryGhost / Ghost / core / client / views / settings / content-base.js View on Github external
import MobileContentView from 'ghost/views/mobile/content-view';
/**
 * All settings views other than the index should inherit from this base class.
 * It ensures that the correct screen is showing when a mobile user navigates
 * to a `settings.someRouteThatIsntIndex` route.
 */

var SettingsContentBaseView = MobileContentView.extend({
    tagName: 'section',
    classNames: ['settings-content', 'js-settings-content', 'fade-in']
});

export default SettingsContentBaseView;