Results 1 to 3 of 3

Thread: Ext.os.is('Phone'); not a supported type for profile

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2013
    Location
    Australia
    Posts
    510

    Default Ext.os.is('Phone'); not a supported type for profile

    Ext.os.is('Phone');
    https://docs.sencha.com/extjs/7.0.0/...ethod-isActive

    is not a supported type
    https://docs.sencha.com/extjs/7.0.0/...html#method-is

    to find if a phone, desktop or tablet
    if (Ext.os.deviceType === 'Desktop') {
    https://docs.sencha.com/extjs/7.0.0/...rty-deviceType

    I made a fiddle for desktop/tablet/phone profiles sharing a controller and model
    https://fiddle.sencha.com/#view/editor&fiddle/2v8t

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    I'm sorry, I'm not understanding the bug you are reporting. Documentation doesn't list "Phone" as an option for Ext.os.is so I feel like there is something that you haven't said here.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2013
    Location
    Australia
    Posts
    510

    Default

    Sorry,

    link is
    https://docs.sencha.com/extjs/7.0.0/...p.Profile.html


    Ext.define('MyApp.profile.Phone', {
    extend: 'Ext.app.Profile',


    views: ['Main'],


    isActive: function() {
    return Ext.os.is('Phone');
    }
    });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •