Jump to content

Recommended Posts

Posted

Как правильно удалить текущую страницу, на которой лежит картинка?

Процесс наполнения здесь

При удалении - ошибка: Cannot set property 'ownerCmp' of null.

Удаляю просто:

carouselPhotos.ActivePage.Free;

 

вижу здесь похожую ошибку но там 2018 год и старая версия ExtJS. Неужели до сих пор не исправили?

Posted
2 minutes ago, x11 said:

вижу здесь похожую ошибку но там 2018 год и старая версия ExtJS. Неужели до сих пор не исправили?

Здравствуйте,

Кажется и для версии 6.6.0: 

https://forum.sencha.com/forum/showthread.php?468755-6-5-2-Removing-an-item-from-Ext-carousel-Carousel-throws-exception&p=1319894&viewfull=1#post1319894

Posted
9 minutes ago, x11 said:

так а сейчас версия 7,0 в UniGUI

Да, я знаю.

29 minutes ago, x11 said:

Неужели до сих пор не исправили?

Возможно да, что не исправили. И возможно, что это вопрос не к UniGUI.

Мы постараемся проанализировать.

  • Like 1
Posted
17 minutes ago, x11 said:

Я так понял, решение какое-то есть?

Попробуйте такое решение:

UnimCarousel.ClientEvents.UniEvents ->

function afterCreate(sender) 
{
    Ext.Decorator.override({
        applyComponent: function(config) {
            var result = Ext.factory(config);
            if (result) {
                result.ownerCmp = this;
            }
            return result;
        }
    });
}

 

  • Like 1
  • 4 years later...
Posted

Gentlemen,

I am using UniGui 1.95.0.1579 and still I am not able to remove pages from the carousel. 

The error nGetID is not a function.

I applied the code as shown above to the UnimCarousel, without any change the error persists.

Any thoughts or workarounds?

My code is a gallery, where pictures and other content need to be loaded dynamically and removed of course (depends on number of pictures)
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...