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
    306

    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,449

    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
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

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

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

    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
  •